/**
 * 路由表
 */
export const routes = [
  {
    path: "/login",
    name: "login",
    component: () => import("/@/views/login/index.vue"),
  },
  {
    path: "/",
    name: "layout",
    component: () => import("/@/layout/index.vue"),
    children: [
      {
        path: "/user",
        name: "user",
        component: () => import("/@/views/user/index.vue"),
      },
      // {
      //   path: "/setting",
      //   name: "setting",
      //   component: () => import("/@/views/setting/index.vue"),
      // },
      {
        path: "/components/drawer",
        name: "drawer",
        component: () => import("/@/views/components/Drawer.vue"),
      },
      {
        path: "/components/timeGroup",
        name: "timeGroup",
        component: () => import("/@/views/components/TimeGroup.vue"),
      },
      {
        path: "/components/canvasChart",
        name: "canvasChart",
        component: () => import("/@/views/components/CanvasChart.vue"),
      },
      {
        path: "/components/codeEditor",
        name: "codeEditor",
        component: () => import("/@/views/components/CodeEditor.vue"),
      },
      {
        path: "/components/basicTable",
        name: "basicTable",
        component: () => import("/@/views/components/BasicTable.vue"),
      },
      {
        path: "/components/buttonBar",
        name: "buttonBar",
        component: () => import("/@/views/components/ButtonBar.vue"),
      },
      {
        path: "/components/basicForm",
        name: "basicForm",
        component: () => import("/@/views/components/BasicForm.vue"),
      },
      {
        path: "/components/basicInput",
        name: "basicInput",
        component: () => import("/@/views/components/BasicInput.vue"),
      },
      {
        path: "/404",
        name: "404",
        component: () => import("/@/views/404.vue"),
      },
    ],
  },
];
